package fregat.usb.configprovider;

import java.util.Hashtable;

import fregat.base.database.DBLink;

public class Configuration implements IConfiguration {

	int product_id, vendor_id;
	int in_bulk_address, out_bulk_address;
	
	Hashtable <DBLink.DBConfigAttributes, String> properties;
	
	public Configuration() {
		properties = new Hashtable<DBLink.DBConfigAttributes, String>();
	}
	
	public void setProductId(int pid) {
		product_id = pid;
	}
	
	public void setVendorId (int vid) {
		vendor_id = vid;
	}
	
	public void setInBulkAddress (int in) {
		in_bulk_address = in;
	}
	
	public void setOutBulkAddress (int out) {
		out_bulk_address = out;
	}
	
	@Override
	public short getProductId() {
		// TODO Auto-generated method stub
		return (short) product_id	;
	}

	@Override
	public short getVendorId() {
		// TODO Auto-generated method stub
		return (short) vendor_id;
	}
	
	public Hashtable <DBLink.DBConfigAttributes, String> getPropertiesCollector () {
		return properties;
	}

	@Override
	public short getInBulkAddress() {
		return (short) in_bulk_address;
	}

	@Override
	public short getOutBulkAddress() {
		return (short) out_bulk_address;
	}

}
